package com.runshu.newsmartark.mvp.model;


import com.runshu.newsmartark.common.ConstantUrl;
import com.runshu.newsmartark.entity.ApkVersionEntity;
import com.runshu.newsmartark.mvp.contract.GetVersionContract;
import com.runshu.newsmartark.network.netbean.HttpRequestParamsBuilder;
import com.runshu.newsmartark.network.netbean.ResponseBean;
import com.runshu.newsmartark.network.netinterface.BaseCallBack;

/**
 * Demo class
 *
 * @author yu
 * @date 2020/10/16
 * @decs：
 */

public class GetVersionModel extends BaseModel implements GetVersionContract.Model {
    @Override
    public void getVersionInfo(String versionCode, BaseCallBack baseCallBack) {
        HttpRequestParamsBuilder builder = new HttpRequestParamsBuilder();
        builder.putParams("versionCode",versionCode);
        super.initDataFromServer(ConstantUrl.GET_Version,builder.build(), ApkVersionEntity.class, ResponseBean.RES_DATATYPE_BEAN,baseCallBack);

    }
}